package org.yjy.sys.impl.account;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.yjy.pvd.pojo.account.Users;
import org.yjy.sys.dao.account.UsersDao;
import org.yjy.sys.service.account.UsersService;

import java.util.List;
@Service
public class UsersServiceImpl implements UsersService {
    @Autowired
    private UsersDao usersDao;

    @Override
    public String findAll() {
        List<Users> all = usersDao.findAll();
        String s = all.toString();
        return s;
    }

    @Override
    public Users selectUsersByNameAndPassword(Users user) {
        return usersDao.selectUsersByNameAndPassword(user);
    }


    @Override
    public Users selectUsersByName(Users user) {
        return usersDao.selectUsersByName(user);
    }


}
